//
//  SSChristmas.h
//  Secret Santa
//
//  Created by Andrew Cain on 12/10/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "SSStatusMessage.h"

@class SSPerson;

@interface SSChristmas : NSManagedObject {
}

- (NSString *)message;
- (void)setMessage:(NSString *)value;
- (BOOL)validateMessage: (id *)valueRef error:(NSError **)outError;

- (NSString *)year;
- (void)setYear:(NSString *)value;
- (BOOL)validateYear: (id *)valueRef error:(NSError **)outError;

- (NSString *)title;
- (void)setTitle:(NSString *)value;
- (BOOL)validateTitle: (id *)valueRef error:(NSError **)outError;

- (NSNumber *)prepared;
- (void)setPrepared:(NSNumber *)value;

// Access to-many relationship via -[NSObject mutableSetValueForKey:]
- (void) addPeopleObject: (SSPerson *)value;
- (void) removePeopleObject: (SSPerson *)value;
- (void) addPeople: (NSSet *) peopleToAdd;
- (void) removePeople: (NSSet *) peopleToRemove;

//Actions
- (BOOL) prepareMatches;
- (void) sendEmailWithStatus: (id <StatusMessageDelegate>)status;

@end
